package org.xs.big_event.annotation;

import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;

//验证器
public class statsValidator implements ConstraintValidator<stats, String> {
    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
        if (value== null){
            return false;
        }
        if (value== "已发布"||value== "草稿"){
            return true;
        }
        return false;
    }
}
